<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>测试</title>
<script src="https://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>

<style type="text/css">
body{ padding: 10px; }
</style>
</head>
<body>
<a href="javascript:m();" > 刷新列表</a>
<table class="layui-table">
  <thead>
    <tr>
      <th>标签名称</th>
      <th>图标</th>
      <th>排序</th>
      <th>绑定用户</th>
      <th toolbar="barDemo" >操作</th>
    </tr> 
  </thead>
  <tbody id="result">
    	<tr>
      <td>-</td>
      <td>-</td>
      <td>-</td>
      <td>-</td>
      <td><a class="layui-btn layui-btn-xs xedit" lay-event="edit">编辑</a> <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a></td>
    </tr> 
  </tbody>
</table>
</body>
<script type="text/javascript">
	function m()
	{
		var obj = $('#w_255').clone(true); 
		$('#w_255').remove(); 
		  $("#result").prepend(obj); 
	}
	function d()
	{
		for(i = 0; i < 300;i++)
		{
			var newMsg = "";
			newMsg += '<tr id="w_' + i + '">';
		    newMsg += '<td>' + i + '</td>';
		    newMsg += '<td>-</td>';
		    newMsg += '<td>-</td>';
		    newMsg += '<td>-</td>';
		    newMsg += '<td><a class="layui-btn layui-btn-xs xedit" lay-event="edit">编辑</a> <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a></td>';
		    newMsg += '</tr>';
			$("#result").append(newMsg);
		}
	}
	d();
</script>
</html>
